package com.candy.databasedocuments.utils;

import org.apache.commons.lang3.time.DateFormatUtils;

import java.io.File;
import java.util.Date;
import java.util.Random;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/7/11 13:51
 * @Description 描述
 */
public class ToolsUtils {

    private static final Random random = new Random();

    public static String getFileName(String suffix) {
        return File.separator + DateFormatUtils.format(new Date(), "yyyy-MM-dd_hh-mm-ss") + random.nextInt(10) + "." + suffix;
    }

}
